/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "库存信息表", TableName = "InventoryModel")]
    public partial class InventoryModel : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Key]
        [Display(Name = "主键")]
        [Column(TypeName = "bigint")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public long Id { get; set; }

        /// <summary>
        /// 货品ID
        /// </summary>
        [Display(Name = "货品ID")]
        [Column(TypeName = "bigint")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public long GoodsId { get; set; }

        /// <summary>
        /// 仓库ID
        /// </summary>
        [Display(Name = "仓库ID")]
        [Column(TypeName = "bigint")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public long WarehouseId { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        [Display(Name = "批次号")]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string BatchNo { get; set; }

        /// <summary>
        /// 当前库存数量(主单位)
        /// </summary>
        [Display(Name = "当前库存数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int CurrentQty { get; set; }

        /// <summary>
        /// 期初库存数量(主单位)
        /// </summary>
        [Display(Name = "期初库存数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int InitialQty { get; set; }

        /// <summary>
        /// 库存上限(主单位)
        /// </summary>
        [Display(Name = "库存上限")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? UpperLimit { get; set; }

        /// <summary>
        /// 库存下限(主单位)
        /// </summary>
        [Display(Name = "库存下限")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? LowerLimit { get; set; }

        /// <summary>
        /// 过期日期
        /// </summary>
        [Display(Name = "过期日期")]
        [Column(TypeName = "date")]
        [Editable(true)]
        public DateTime? ExpireDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        [Column(TypeName = "nvarchar(500)")]
        [Editable(true)]
        public string Remark { get; set; }

        /// <summary>
        /// 删除标识
        /// </summary>
        [Display(Name = "删除标识")]
        [Column(TypeName = "sbyte")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public sbyte IsDel { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(15)]
        [Column(TypeName = "nvarchar(15)")]
        [Editable(true)]
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(15)]
        [Column(TypeName = "nvarchar(15)")]
        [Editable(true)]
        public string Modifier { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// 创建人id
        /// </summary>
        [Display(Name = "创建人id")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? CreateID { get; set; }

        /// <summary>
        /// 修改人id
        /// </summary>
        [Display(Name = "修改人id")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? ModifyID { get; set; }
    }
}

